package cn.itsource.pethome.org.domain;

import cn.itsource.pethome.basic.domain.BaseDomain;
import lombok.Data;

import java.util.List;

@Data
public class Department extends BaseDomain{
    //部门编号
    private String sn;
    //部门名
    private String name;
    //状态: 0正常  -1 禁用
    private Integer state;

    //path路径，方便做上级部门回显的   2,5,8
    private String path;
    //部门经理
    private Employee manager;
    //上级部门
    private Department parent;

    //装子部门
    private List<Department> children;


    public String getLabel(){
        return this.name;
    }
    public String getValue(){
        return String.valueOf(id);
    }
}
